import request from '@/utils/request';

//添加购物车
export const addCart = data =>
    request({
        method: 'POST',
        url: '/frontend/cart/add/',
        data
    })
//删除购物车中某个商品
export const deleteCart = (ids) =>
    request({
        method: 'POST',
        url: '/frontend/cart/delete/',
        data:{ids}
    })
//更新购物车
export const updateCart = data =>
    request({
        method: 'POST',
        url: '/frontend/cart/update/',
        data
    })

//获取购物车
export const getCartList = data =>
    request({
        method: 'POST',
        url: '/frontend/cart/list/',
        data
    })

